<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Spatie\Permission\Traits\HasRoles;

class Admin extends Authenticatable
{
    //加入角色模型 这样在数据迁移的时候就可以分配角色了
    use Notifiable, HasRoles;

    protected $fillable = ['name','nickname','password','gid','remember_token'];
}
